from selenium import webdriver
import time, os, random, traceback

if __name__ == "__main__":

    browser = webdriver.Firefox(executable_path=r"C:\Program Files\Python\Python38\Scripts\geckodriver.exe",log_path=r'D:\log\webdriver.log')
    fund_codes = "519674,001668,161031,001595,001548,001178,020003,540012,005911,270042,005918,162213,519069,040046,100039,166002,162703,260108,003376,001630,001878,000248,16022,519736,519688,110022,000601,001714,000045,162605,001632,004042,260101,004744,003766,180012,161716,206018,270044,001061,000406,001938,000083,005224,001102,000342,002079,161725,00962,519732,501058,519772,162412,206009,161028,110011,004424,004075,968061" \
        .split(',')
    browser.get('http://favor.fund.eastmoney.com/')
    for code in fund_codes:
        url='http://fund.10jqka.com.cn/myfund.php?userid=529791837&do=add&codes='+code+'&_='+str(time.time())
        browser.get(url)



